//
//  VOHMVView.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/15.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMVView.h"
#import "VOHClassifyView.h"
@interface VOHMVView ()
@property(nonatomic, strong)UIScrollView *backView;
@end
@implementation VOHMVView
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}
-(void)setUpView{
 //背景图
    self.backgroundColor = [UIColor lightGrayColor];
    UIScrollView *backView = [[UIScrollView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    backView.contentSize = CGSizeMake(ScreenWidth, 2600);
    backView.showsVerticalScrollIndicator = NO;
    [self addSubview:backView];
    self.backView = backView;
    //头部视图
    self.topView = [[VOHTopView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 200)];
    [self.backView addSubview:self.topView];
       //中间视图
    self.bottomView = [[VOHClassifyView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.topView.frame), ScreenWidth, self.backView.contentSize.height- 200)];
    [self.backView addSubview:self.bottomView];
}







@end
